package com.share.shareplatform.shareorder.service.feign;

import com.share.shareplatform.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.annotation.security.PermitAll;

@Component
@FeignClient(value = "share-goods")
public interface ShopService {

    @GetMapping("/shop/user/{id}")
    Result findOneByUserId(@PathVariable("id") Long id);

}
